import com.google.common.base.Joiner;
import com.google.common.base.Splitter;
import com.google.common.collect.Maps;
import com.google.common.primitives.Ints;

import java.util.Arrays;

public class GuavaJoinerTest {

    public static void main(String[] args) {

//        testSplitter();
//        testJoiner();

    }

    private static void testSplitter() {
        System.out.println(Splitter.on(',')
                .trimResults()
                .omitEmptyStrings()
                .split("the ,quick, , brown         , fox,              jumps, over, the, lazy, little dog."));
    }

    private static void testJoiner() {
        String s = Joiner.on(",")
                .skipNulls()
                .join(Arrays.asList(1, 2, 3, 4, 5, 6, null, 6));
        System.out.println(s);

    }
}
